(function refreshRem() {
    var docEl = document.documentElement;
    var width = docEl.clientWidth;
    var rootSize = width / 10;
    docEl.style.fontSize = rootSize + 'px';
})()